<script>
	export default {
		globalData: {  
		    addBookBtn: false,
			weatherData: {
				weekStr: '星期二',
				dateStr: '2020 / 02 / 02'
			}
		},
		onLaunch: function() {
			
		},
		onShow: function() {
			
		},
		onHide: function() {
			
		},
		methods:{
			watch:function(method,istr){
				var obj = this.globalData
				Object.defineProperty(obj,istr,{
					configurable:true,
					enumerable:true,
					set:function(value){
						this._consumerGoodsStatus = value
						method(value)
					},
					get:function(value){
						return this._consumerGoodsStatus
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	*{
		padding: 0;
		margin: 0;
	}
</style>
